﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>艺术学院网站后台管理</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" type="text/css" href="@Url.Content("~/content/css/base.css")" />
<link rel="stylesheet" type="text/css" href="@Url.Content("~/content/css/wztj.css")" />
<link rel="stylesheet" type="text/css" href="@Url.Content("~/content/css/sousuo.css")">
<script src="@Url.Content("~/ueditor/ueditor.config.js")" type="text/javascript"></script>
<script src="@Url.Content("~/ueditor/ueditor.all.min.js")" type="text/javascript"></script>
<script type="text/javascript" src="@Url.Content("~/Content/ckfinder/ckfinder.js")"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/content/admin/js/jquery.js")" type="text/javascript"></script><!-- 文件选中后动作-->
<script type="text/javascript">
    function BrowseServer(inputId) {
        var finder = new CKFinder();
        finder.basePath = '../ckfinder/'; //导入CKFinder的路径 
        finder.selectActionFunction = SetFileField; //设置文件被选中时的函数 
        finder.selectActionData = inputId; //接收地址的input ID 
        finder.popup();
    }
    //文件选中时执行 
    function SetFileField(fileUrl) {
        $("#xFilePath").val(fileUrl);
        $("#imgNews").attr("src", "" + fileUrl + "");
        // document.getElementById('xFilePath').value = fileUrl;
    }   
</script>
<style type="text/css">
    div{
        width:100%;
        }
</style>
</head>
<body>
        <div id="left">
                <a href="@Url.Action("Index", "Home", new { area = "" })"><img src="@Url.Content("~/content/images/title.png")" style="margin-bottom:-4px;" /></a>
                
                <img src="@Url.Content("~/content/images/文件管理.png")" />
                
                <div class="lone">
                        <ul>
                @if (Request.IsAuthenticated)
                {
                     <li>@Html.ActionLink("图片管理", "Index", "Img")</li>
                     <li>@Html.ActionLink("添加图片", "Create", "Img")</li>
                }
                        </ul>
                
                </div>
                
                
                <img src="@Url.Content("~/content/images/文章与上传.png")" />
                <div class="ltwo">

                        <ul>
                @if (Request.IsAuthenticated)
                {           
				<li>
                    @Html.ActionLink("新闻管理", "Index", "News")
                </li>
                <li>
                    @Html.ActionLink("教务管理", "Index", "Jwmanger")
                </li>
                <li>
                    @Html.ActionLink("专题管理", "Index", "Zt")  
                     
                </li>
                <li>
                    @Html.ActionLink("用户管理", "Index", "Account")   
                </li>
                <li>
                    @Html.ActionLink("师资队伍管理", "Index", "Tea")
                </li>
                <li>
                    @Html.ActionLink("学科建设管理", "Index", "Sub")
                </li>
                
                <li>
                    @Html.ActionLink("科学研究管理", "Index", "Sin")
                </li>
                <li>
                    @Html.ActionLink("党群工作管理", "Index", "Dqgz")   
                </li>
                <li>
                    @Html.ActionLink("团学工作管理", "Index", "Txgz")   
                </li>
                <li>
                    @Html.ActionLink("艺苑风采管理", "Index", "ywshow")   
                </li>
                
                <li>
                    @Html.ActionLink("专业建设管理", "Index", "Zy")   
                </li>
                <li>
                    @Html.ActionLink("通知公告管理", "Index", "Tz")   
                </li>
                <li>
                    @Html.ActionLink("学术活动管理", "Index", "Xs")   
                </li>
                <li>
                    @Html.ActionLink("他山之石管理", "Index", "Ts")   
                </li>
                }
                        </ul>
                        
                </div>
                
                <a href="http://online.cumt.edu.cn">"<img alt ="学生在线"src="@Url.Content("~/content/images/技术支持.png")" /></a>
        </div>
        <div id="right">
            <div >
                    <img src="@Url.Content("~/content/images/futitle.png")" />
            </div>
            <div id="content">
            @RenderBody() 
            </div>
            <center ><p class="feet">2014-2015中国矿业大学艺术与设计学院后台管理系统</p></center>
        </div>
        
        @if (Request.IsAuthenticated)
        {<p id="adim">@User.Identity.Name <a id="logout" href="@Url.Action("LogOff", "Account")">注销</a></p>}
        
<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor');


    function isFocus(e) {
        alert(UE.getEditor('editor').isFocus());
        UE.dom.domUtils.preventDefault(e)
    }
    function setblur(e) {
        UE.getEditor('editor').blur();
        UE.dom.domUtils.preventDefault(e)
    }
    function insertHtml() {
        var value = prompt('插入html代码', '');
        UE.getEditor('editor').execCommand('insertHtml', value)
    }
    function createEditor() {
        enableBtn();
        UE.getEditor('editor');
    }
    function getAllHtml() {
        alert(UE.getEditor('editor').getAllHtml())
    }
    function getContent() {
        var arr = [];
        arr.push("使用editor.getContent()方法可以获得编辑器的内容");
        arr.push("内容为：");
        arr.push(UE.getEditor('editor').getContent());
        alert(arr.join("\n"));
    }
    function getPlainTxt() {
        var arr = [];
        arr.push("使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容");
        arr.push("内容为：");
        arr.push(UE.getEditor('editor').getPlainTxt());
        alert(arr.join('\n'))
    }
    function setContent(isAppendTo) {
        var arr = [];
        arr.push("使用editor.setContent('欢迎使用ueditor')方法可以设置编辑器的内容");
        UE.getEditor('editor').setContent('欢迎使用ueditor', isAppendTo);
        alert(arr.join("\n"));
    }
    function setDisabled() {
        UE.getEditor('editor').setDisabled('fullscreen');
        disableBtn("enable");
    }

    function setEnabled() {
        UE.getEditor('editor').setEnabled();
        enableBtn();
    }

    function getText() {
        //当你点击按钮时编辑区域已经失去了焦点，如果直接用getText将不会得到内容，所以要在选回来，然后取得内容
        var range = UE.getEditor('editor').selection.getRange();
        range.select();
        var txt = UE.getEditor('editor').selection.getText();
        alert(txt)
    }

    function getContentTxt() {
        var arr = [];
        arr.push("使用editor.getContentTxt()方法可以获得编辑器的纯文本内容");
        arr.push("编辑器的纯文本内容为：");
        arr.push(UE.getEditor('editor').getContentTxt());
        alert(arr.join("\n"));
    }
    function hasContent() {
        var arr = [];
        arr.push("使用editor.hasContents()方法判断编辑器里是否有内容");
        arr.push("判断结果为：");
        arr.push(UE.getEditor('editor').hasContents());
        alert(arr.join("\n"));
    }
    function setFocus() {
        UE.getEditor('editor').focus();
    }
    function deleteEditor() {
        disableBtn();
        UE.getEditor('editor').destroy();
    }
    function disableBtn(str) {
        var div = document.getElementById('btns');
        var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
        for (var i = 0, btn; btn = btns[i++]; ) {
            if (btn.id == str) {
                UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
            } else {
                btn.setAttribute("disabled", "true");
            }
        }
    }
    function enableBtn() {
        var div = document.getElementById('btns');
        var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
        for (var i = 0, btn; btn = btns[i++]; ) {
            UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
        }
    }

</script>
</body>
</html>